(x_get_glyph_overhangs): Fix calculation of right
authorKenichi Handa <handa@m17n.org>
Thu, 11 Jun 2009 02:34:05 +0000 (02:34 +0000)
committerKenichi Handa <handa@m17n.org>
Thu, 11 Jun 2009 02:34:05 +0000 (02:34 +0000)
overhang for the static composition case.

src/xdisp.c

index eff922e742263312ff76d43ae0f663bb4e0460dc..8d94bfb9db239abae81899cd16001f1ff06bdc45 100644 (file)
@@ -19913,7 +19913,7 @@ x_get_glyph_overhangs (glyph, f, left, right)
        {
          struct composition *cmp = composition_table[glyph->u.cmp.id];
 
-         if (cmp->rbearing - cmp->pixel_width)
+         if (cmp->rbearing > cmp->pixel_width)
            *right = cmp->rbearing - cmp->pixel_width;
          if (cmp->lbearing < 0);
          *left = - cmp->lbearing;